package com.huangjue.backend.mapper;

import com.huangjue.backend.entity.Teacher;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TeacherMapper {
    //获取推荐老师
    List<Teacher> getRecommendTeacher();

    Teacher getTeacherById(Integer teacherId);
    
    // 通过recommend_id获取teacher_id
    Integer getTeacherIdByRecommendId(@Param("recommendId")Integer recommendId);

    /**
     * 更新教师鲜花数量
     */
    int updateTeacherFlower(Integer teacherId);
}
